package com.solarfridge.monitor.shared;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Class containing login info about a user.
 */
public class LoginInfo implements IsSerializable {

	  private boolean loggedIn = false;
	  private String loginUrl;
	  private String logoutUrl;
	  private String emailAddress;
	  private String nickname;
	  
	  /** is user admin. */
	  private boolean mIsAdmin = false;
	  
	
	  /**
	   * Checks if is logged in.
	   *
	   * @return true, if is logged in
	   */
	  public boolean isLoggedIn() {
	    return loggedIn;
	  }
	
	  /**
	   * Sets the logged in.
	   *
	   * @param loggedIn the new logged in
	   */
	  public void setLoggedIn(boolean loggedIn) {
	    this.loggedIn = loggedIn;
	  }
	
	  /**
	   * Gets the login url.
	   *
	   * @return the login url
	   */
	  public String getLoginUrl() {
	    return loginUrl;
	  }
	
	  public void setLoginUrl(String loginUrl) {
	    this.loginUrl = loginUrl;
	  }
	
	  public String getLogoutUrl() {
	    return logoutUrl;
	  }
	
	  public void setLogoutUrl(String logoutUrl) {
	    this.logoutUrl = logoutUrl;
	  }
	
	  public String getEmailAddress() {
	    return emailAddress;
	  }
	
	  public void setEmailAddress(String emailAddress) {
	    this.emailAddress = emailAddress;
	  }
	
	  public String getNickname() {
	    return nickname;
	  }
	
	  public void setNickname(String nickname) {
	    this.nickname = nickname;
	  }

	public boolean isAdmin() {
		return mIsAdmin;
	}
	
	public void setIsAdmin(boolean isAdmin) {
		mIsAdmin = isAdmin;
	}
}
